package com.linked.goods.goodsbase.bean.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author :dbq
 * @date : 2023/1/28 10:57
 * @description : desc
 */
@Data
@TableName("goods_goods_version")
public class GoodsVersionPO {

    @TableId(value = "goods_version_id",type = IdType.ASSIGN_UUID)
    private String goodsVersionId;
    @TableField("goods_id")
    private String goodsId;
    @TableField("version_name")
    private String versionName;
    @TableField("version_price")
    private Double versionPrice;
    @TableField("main_version")
    private Integer mainVersion;
    @TableField("version_desc")
    private String versionDesc;
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField("data_status")
    private Integer dataStatus;
    @TableField("version_index")
    private Integer versionIndex;


}
